from typing import Union

from pydantic import BaseModel


class TokenRequest(BaseModel):
    username: Union[str, None]


class Token(BaseModel):
    access_token: str
    token_type: str
